<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function arr(n) {
      if (n <= 0) return 0;
      let res = [1, 5, 10, 25];
      let dp = Array.from({ length: n + 1 }, () => 1);
      dp[0] = 1;
      for (let i = 1; i < 4; i++) {
        for (let j = 1; j <= n; j++) {
          if (j - res[i] >= 0) {
            dp[j] = (dp[j] + dp[j - res[i]]) % (1e9 + 7); // 按照题意需要取模
          }
        }
      }
      return dp[n];
    };
    console.log(arr(5));
  </script>
</body>

</html>